package org.pockito.dctmpersistence.testmodel;

import java.util.ArrayList;
import java.util.List;

import org.pockito.dmspersistence.Attribute;
import org.pockito.dmspersistence.ContentFolder;
import org.pockito.dmspersistence.DmsEntity;
import org.pockito.dmspersistence.DmsType;
import org.pockito.dmspersistence.Embedded;

@DmsEntity
@DmsType(name="dm_folder")
public class Folder extends SysObject {

	@Embedded
	@Attribute(name="r_folder_path", readonly=true)
	private List<String> paths = new ArrayList<String>();
	
	@ContentFolder(mappedBy="parentFolders")
	private List<Folder> folders;

	@ContentFolder(mappedBy="parentFolders")
	private List<SimpleDocument> documents = new ArrayList<SimpleDocument>();

	public List<Folder> getFolders() {
		return folders;
	}

	public void setFolders(List<Folder> folders) {
		this.folders = folders;
	}

	public List<SimpleDocument> getDocuments() {
		return documents;
	}

	public void setDocuments(List<SimpleDocument> documents) {
		this.documents = documents;
	}

	public List<String> getPaths() {
		return paths;
	}

	public void setPaths(List<String> paths) {
		this.paths = paths;
	}
}
